.bin-input-number {
  display: inline-block;
  font-size: 12px;
  color: #515a6e;
  background-color: #fff;
  background-image: none;
  position: relative;
  transition: border .2s ease-in-out, background .2s ease-in-out, box-shadow .2s ease-in-out;
  margin: 0;
  padding: 0;
  width: 80px;
  height: 32px;
  line-height: 32px;
  vertical-align: middle;
  border: 1px solid #dcdee2;
  border-radius: 4px;
  overflow: hidden;
  cursor: default;
  &:hover {
    border-color: #57a3f3;
    .bin-input-number-handler-wrap {
      opacity: 1;
    }
  }
  &:focus {
    border-color: #57a3f3;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(45, 140, 240, .2);
  }
}
.bin-input-number-input-wrap {
  overflow: hidden;
  height: 32px;
}
.bin-input-number-input {
  width: 100%;
  height: 32px;
  line-height: 32px;
  padding: 0 7px;
  text-align: left;
  outline: 0;
  -moz-appearance: textfield;
  color: #666;
  border: 0;
  border-radius: 4px;
  transition: all .2s linear;
}
//  数字输入
.bin-input-number-handler-wrap {
  width: 22px;
  height: 100%;
  border-left: 1px solid #dcdee2;
  border-radius: 0 4px 4px 0;
  background: #fff;
  position: absolute;
  top: 0;
  right: 0;
  transition: opacity .2s ease-in-out;
  opacity: 0;
}
.bin-input-number-handler {
  display: block;
  width: 100%;
  height: 16px;
  line-height: 0;
  text-align: center;
  overflow: hidden;
  color: #999;
  position: relative;
  transition: .3s;
}
.bin-input-number-handler-up {
  cursor: pointer;
}
.bin-input-number-handler-down {
  border-top: 1px solid #dcdee2;
  top: -1px;
  cursor: pointer;
}
.bin-input-number-handler-down-inner, .bin-input-number-handler-up-inner {
  user-select: none;
  position: absolute;
  top: 50%;
  right: 5px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  line-height: 12px;
  font-size: 14px;
  color: #999;
  transition: all .2s linear;
}

.bin-input-number-disabled .bin-input-number-handler-down-inner,
.bin-input-number-disabled .bin-input-number-handler-up-inner,
.bin-input-number-handler-down-disabled .bin-input-number-handler-down-inner,
.bin-input-number-handler-down-disabled .bin-input-number-handler-up-inner,
.bin-input-number-handler-up-disabled .bin-input-number-handler-down-inner,
.bin-input-number-handler-up-disabled .bin-input-number-handler-up-inner {
  opacity: .72;
  color: #ccc !important;
  cursor: not-allowed;
}
//   禁用状态
.bin-input-number-disabled .bin-input-number-input {
  opacity: .72;
  cursor: not-allowed;
  background-color: #f3f3f3;
}
.bin-input-number-input[disabled] {
  background-color: #f3f3f3;
  opacity: 1;
  cursor: not-allowed;
  color: #ccc;
}
.bin-input-number-disabled .bin-input-number-handler-wrap {
  display: none;
}
//不同尺寸
.bin-input-number-small {
  padding: 0;
  height: 26px;
  border-radius: 3px;
  input {
    height: 26px;
    line-height: 26px;
    margin-top: -1px;
    vertical-align: top;
  }
  .bin-input-number-handler {
    height: 13px;
  }
}
.bin-input-number-large {
  font-size: 14px;
  padding: 0;
  height: 36px;
  input {
    height: 36px;
    line-height: 36px;
  }
  .bin-input-number-handler {
    height: 18px;
  }
}

.bin-input-number-focused {
  border-color: #57a3f3;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(45, 140, 240, .2);
}
